/**
 * 业务数据提交
 */
 import {setLocal} from  '../utils/storage'

export default {
    saveuserInfo(state,userInfo){
        state.userInfo =userInfo
        setLocal('userInfo',userInfo)
    },
    setMenuInfo(state,menu){
     state.meunTab=menu
    },
    // 主题色
    layouTheme(state,theme){
       state.layouTheme=theme
    },
    setMyToken(state,token){
        state.token = token
        setLocal('token',token)
    },
    myCurrentMenuKey(state,menuItem){
         state.currentMenuKey = menuItem
         setLocal('currentMenuKey',menuItem)
    },
    myMessageCount(state,count){
        state.count = count
      },
      myMenuRoute(state,menu){
        state.menuData = menu
      },
      verify (state,tokenValue){
        state.rolesVerifyToken = tokenValue
      }
}